<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model common\models\Category */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="category-form">

    <?php $form = ActiveForm::begin(); ?>

    <?= $form->field($model, 'id')->textInput() ?>

    <?= $form->field($model, 'xa_parent_id')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'xa_name')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'xa_url')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'xa_state')->radioList(['1'=>'显示','2'=>'隐藏']) ?>

    <?= $form->field($model, 'xa_status')->dropDownList(['1'=>'一级推荐','2'=>'二级推荐','3'=>'三级推荐'],['prompt' => '请选择']) ?>

    <?//= $form->field($model, 'xa_create_time')->textInput(['maxlength' => true]) ?>

    <?//= $form->field($model, 'xa_update_time')->textInput(['maxlength' => true]) ?>

    <?//= $form->field($model, 'xa_remark')->textInput(['maxlength' => true]) ?>

    <div class="form-group">
        <?= Html::submitButton($model->isNewRecord ? '创建' : '更新', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
    </div>

    <?php ActiveForm::end(); ?>

</div>
